const { SyncBailHook } = require('tapable');

let hook = new SyncBailHook(['name', 'age']);

hook.tap('fn1', function (name, age) {
  console.log('fn1:', name, age)
})
hook.tap('fn2', function (name, age) {
  console.log('fn2:', name, age)
  return true;// 非undefined执行熔断
})
hook.tap('fn3', function (name, age) {
  console.log('fn3:', name, age)
})

hook.call('abc', 123)